package org.serverct.finalfight.internal.game.morerecipes;

import org.bukkit.Material;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.inventory.FurnaceRecipe;

public class SmeltingRecipe extends BasicRecipe {
    public SmeltingRecipe(YamlConfiguration yaml) {
        super(yaml);
        recipe = new FurnaceRecipe(key,
                yaml.getItemStack("result"),
                Material.valueOf(yaml.getString("source")),
                Float.parseFloat(String.valueOf(yaml.getDouble("exp"))),
                yaml.getInt("time"));
    }
}
